
namespace ZR.Model.ProdManage
{
    /// <summary>
    /// 生产计划
    /// </summary>
    [SugarTable("prod_plan")]
    public class ProdPlan
    {
        /// <summary>
        /// 计划编号 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "plan_no")]
        public string PlanNo { get; set; }

        /// <summary>
        /// 来源计划号 
        /// </summary>
        [SugarColumn(ColumnName = "source_code")]
        public string SourceCode { get; set; }

        /// <summary>
        /// DMS订单 
        /// </summary>
        [SugarColumn(ColumnName = "dms_order_no")]
        public string DmsOrderNo { get; set; }

        /// <summary>
        /// 产品编号 
        /// </summary>
        [SugarColumn(ColumnName = "item_no")]
        public string ItemNo { get; set; }

        /// <summary>
        /// 产品类型 
        /// </summary>
        [SugarColumn(ColumnName = "item_type")]
        public string ItemType { get; set; }

        /// <summary>
        /// 客户 
        /// </summary>
        public string Customer { get; set; }

        /// <summary>
        /// 出口国家 
        /// </summary>
        public string Country { get; set; }

        /// <summary>
        /// 配置 
        /// </summary>
        public string Configuration { get; set; }

        /// <summary>
        /// 数量 
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 客户地址 
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 计划包装时间 
        /// </summary>
        [SugarColumn(ColumnName = "plan_time")]
        public DateTime? PlanTime { get; set; }

        /// <summary>
        /// 状态 
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// MES发送状态 
        /// </summary>
        [SugarColumn(ColumnName = "send_status")]
        public int? SendStatus { get; set; }

        /// <summary>
        /// QMS发送状态 
        /// </summary>
        [SugarColumn(ColumnName = "qms_send_status")]
        public int? QmsSendStatus { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    }
}